<?php
if (Yii::app()->user->checkAccess('admin')){
$this->menu=array(
	array('label'=>'List Alumni', 'url'=>array('index')),
	array('label'=>'Create Alumni', 'url'=>array('create')),
	array('label'=>'Update Alumni', 'url'=>array('update', 'id'=>$model->id)),
    array('label'=>'Renew Alumni', 'url'=>array('renew', 'id'=>$model->id)),
/*	array('label'=>'Delete Alumni', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
*/	/*array('label'=>'Dashboard', 'url'=>array('admin')),	*/
);
}
?>

<div class="member_info">
	<div class="member_image">
        <?php if ($model->user->user_photo != null){?>
        <a href="<?php echo Yii::app()->baseURL.'/files/images/'.$model->user->user_photo?>" class="popup">
            <img src="<?php echo Yii::app()->baseURL.'/files/images/'.$model->user->user_photo?>" />
        </a>
        <?php } else { ?>
            <i>No Image Available</i>
        <?php } ?>
    </div>

 <div class="member_user">
        <h1><?php echo $model->user->getFullName(); ?></h1>
        
        <label>Username:</label>
            <?php echo $model->user->username; ?>
         <br>
        <label>Contact number:</label>
            <?php echo $model->user->user_mobile; ?>
		 <br>
         <label>Type:</label>
    		<?php echo $model->user->roles; ?>
    	 <br>
    	 <label>Email:</label>
    		<?php echo $model->user->user_email; ?>
    	 <br>
 </div>  
    <div class="clear"></div>
</div>
 </div>

 <div class="span-16" id="view">
<?php $this->widget('bootstrap.widgets.TbDetailView',array(
'data'=>$model,
'type'=>'striped bordered condensed',
'attributes'=>array(
        'user.user_birthdate',
		'user.user_gender', 
		'user.user_marital_status', 
		'user.user_address1', 
		'user.user_address2',
		'user.user_landline', 
),
)); ?>
<h2>Alumni Details</h2>
<?php $this->widget('bootstrap.widgets.TbDetailView',array(
'data'=>$model,
'type'=>'striped bordered condensed',
'attributes'=>array(
        'userCode',
        'alumni_registration_date',
        'alumni_occupation',
        'alumni_company_name',
        'alumni_company_contact_num',
),
)); ?>
<?php $this->widget("ext.magnific-popup.EMagnificPopup", array('target' => '.popup')); ?>
